// indattach/jingqv/jingqv.js
const app = getApp();
Page({

    /**
     * 页面的初始数据
     */
    data: {
        jingqvs: '',
        qtitems:[
            {name:'象鼻山',url:'http://www.longhushan.com.cn/upload/portal/20181116/35a06a30608f8c2447a239462d21906d.jpg'},
            {name:'仙水岩',url:'http://www.longhushan.com.cn/upload/portal/20181115/064d9e7dc4edd32ecbfd7105208ede30.jpg'},
            {name:'花语世界',url:'http://www.longhushan.com.cn/upload/default/20181115/8258b83629800af2811ef8c2230d3cb5.jpg'},
            {name:'寻梦龙虎山',url:'http://www.longhushan.com.cn/upload/default/20181115/42ab1730cdab3be85726d86f448ef945.jpg'}
        ]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var that = this;
        wx.showLoading({
            title: '加载中...',
        })
        app.comrequest('https://ipass.cc/myapi/jingqv.php','').then(res=>{
            // console.log(res)
            that.setData({
                jingqvs:res
            })
            wx.hideLoading()
          })
    }
})